Skip to content

Conversation

@halvaradop
Copy link
Member

@halvaradop halvaradop commented Jan 5, 2026

Description

This pull request adds the Notion OAuth provider to the list of supported OAuth integrations in the Aura Auth library.
With this addition, Aura Auth now supports seven OAuth providers: GitHub, Bitbucket, Figma, Discord, GitLab, Spotify, X, Strava and Notion

Set up

import { createAuth } from "@aura-stack/auth"

export const auth = createAuth({
  oauth: ["notion"],
})

export const { handlers } = auth

Note

Missing docs

@vercel
Copy link

vercel bot commented Jan 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
auth-nextjs-demo Ready Ready Preview, Comment Jan 5, 2026 11:39pm
1 Skipped Deployment
Project Deployment Review Updated (UTC)
auth Skipped Skipped Jan 5, 2026 11:39pm

@halvaradop
Copy link
Member Author

halvaradop commented Jan 5, 2026

Note

This pull request is marked as draft because the current implementation of the authorizeURL, accessToken, and userInfo options only accepts endpoint URLs for the OAuth 2.0 Authorization Code flow. At the moment, it is not possible to pass additional parameters or custom headers to these endpoints.

The Notion API requires additional headers for authentication and versioning:

  • Authorization: Basic ... when exchanging the authorization code for an access token. docs
  • Notion-Version when fetching user information. docs

These requirements are not currently supported by Aura Auth’s default OAuth flow.

This OAuth provider faces the same limitation as the drafted Twitch OAuth provider Twitch OAuth Provider - #47, as both require support for custom or additional headers in the OAuth endpoints. Once this capability is introduced, this pull request can be completed and reviewed properly.

@halvaradop halvaradop added the oauth Changes related to OAuth flows, providers, tokens, or authentication integration. label Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oauth Changes related to OAuth flows, providers, tokens, or authentication integration.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant